package com.tencreat.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
/**
 * 描述信息  积分枚举类
 * @Author yaoruiqi
 * @Date: 2023/10/08 04:06
 */
@Getter
public enum CityIntegralTypeEnum {


    ORDER_PAY(10,"购买商品"),
    CASH_COUPON(11,"兑换现金券"),
    PT_EXCHANGE(12,"拼团拼中兑换"),
    SETTLEMENT_INCOME(13,"结算收益"),
    SIGN_IN(14,"签到"),
    INTEGRAL_DEDUCT(15,"积分抵扣"),
    SYSTEM_ADD(16,"后台增加"),
    SYSTEM_SUB(17,"后台减少"),
    ;


    CityIntegralTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
